package xyz.zxcwxy999.news.service;

import xyz.zxcwxy999.news.entity.Comment;

public interface CommentService {
    /**
     * 获取全部评论
     * @param nid
     * @return
     */
    Comment[] getAllComments(int nid);

    /**
     * 删除一条评论
     * @param cid
     * @return
     */
    int deleteOneComment(int cid);

    /**
     * 添加一条评论
     * @param comment
     * @return
     */
    int addOneComment(Comment comment);
}
